.container {
  background-color: #f5f7fa;
  min-height: calc(100vh - 44px - env(safe-area-inset-top) - var(--tab-bar-height) - env(safe-area-inset-bottom));
  box-sizing: border-box;
  padding-bottom: 60rpx;
  text-align: center;
}

view {
  box-sizing: border-box;
}

/* 用户信息区域 */
.userinfo {
  position: relative;
  width: 100%;
  background: #FFF;
  text-align: center;
  padding: 60rpx 0 40rpx;
  color: #333;
  border-radius: 0 0 30rpx 30rpx;
  box-shadow: 0 10rpx 20rpx rgba(0, 0, 0, 0.05);
  margin-bottom: 30rpx;

  .userinfo-con {
    width: 240rpx;
    margin: auto;

    .userinfo-avatar {
      overflow: hidden;
      display: block;
      width: 160rpx;
      height: 160rpx;
      border-radius: 50%;
      box-shadow: 0 5rpx 15rpx rgba(0, 0, 0, 0.2);
      margin: auto;
      border: 5rpx solid rgba(255, 255, 255, 0.3);
      transition: transform 0.3s ease;

      &:hover {
        transform: scale(1.05);
      }

      image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        background-color: #f5f5f5;
        border-radius: 50%;
      }

      &.image-error {
        image {
          display: none;
        }

        &::after {
          content: '';
          display: block;
          width: 100%;
          height: 100%;
          background-color: #f5f5f5;
          border-radius: 50%;
          background-image: url('@/static/images/icon/head04.png');
          background-size: cover;
          background-position: center;
        }
      }
    }

    .userinfo-name {
      font-size: 34rpx;
      font-weight: 600;
      margin-top: 25rpx;
      text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.1);
    }
  }
}

/* 未登录状态 */
.userinfo-none {
  display: flex;
  padding: 40rpx;
  background: #fff;
  align-items: center;
  border-radius: 20rpx;
  margin: 30rpx;
  box-shadow: 0 5rpx 15rpx rgba(0, 0, 0, 0.03);

  .default-pic {
    padding-right: 30rpx;
    image {
      width: 160rpx;
      height: 160rpx;
      border-radius: 50%;
      box-shadow: 0 5rpx 15rpx rgba(0, 0, 0, 0.1);
    }
  }
}

.none-login {
  button {
    background: transparent;
    &::after { border: 0; }
  }

  .unlogin {
    font-size: 32rpx;
    font-weight: 600;
    text-align: left;
    padding: 0;
    color: #333;
  }

  .click-login {
    font-size: 28rpx;
    color: #00a0e9;
    text-align: left;
    padding: 0;
    margin-top: 10rpx;
    text-decoration: underline;
  }
}

/* 订单状态区域 */
.list-cont {
  background: transparent;
  padding: 0 20rpx;
  margin: 0 auto;

  .total-order {
    background: #fff;
    border-radius: 20rpx;
    box-shadow: 0 5rpx 15rpx rgba(0, 0, 0, 0.03);
    overflow: hidden;
    margin-bottom: 30rpx;

    .order-tit {
      display: flex;
      justify-content: space-between;
      height: 90rpx;
      line-height: 90rpx;
      font-size: 32rpx;
      padding: 0 30rpx;
      border-bottom: 1px solid #f5f5f5;

      .checkmore {
        font-size: 26rpx;
        color: #888;
        display: flex;
        align-items: center;
        transition: color 0.3s;

        &:hover {
          color: #00a0e9;
        }
      }
    }

    .procedure {
      display: flex;
      justify-content: space-around;
      align-items: center;
      font-size: 26rpx;
      height: 180rpx;

      .items {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15rpx;
        border-radius: 15rpx;
        transition: all 0.3s;
        width: 20%;

        &:hover {
          background-color: #f5f7fa;
          transform: translateY(-5rpx);
        }

        image {
          width: 70rpx;
          height: 70rpx;
          margin-bottom: 20rpx;
        }

        .num-badge {
          position: absolute;
          top: -5rpx;
          right: 20rpx;
          color: #fff;
          background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
          border-radius: 50rpx;
          min-width: 40rpx;
          height: 40rpx;
          line-height: 40rpx;
          text-align: center;
          padding: 0 15rpx;
          font-size: 24rpx;
          box-shadow: 0 3rpx 8rpx rgba(255, 107, 107, 0.3);
        }
      }
    }
  }
}

/* 功能卡片区域 */
.prod-col {
  margin-top: 0;
  background: #fff;
  display: flex;
  justify-content: space-around;
  padding: 30rpx 0;
  font-size: 28rpx;
  border-radius: 20rpx;
  box-shadow: 0 5rpx 15rpx rgba(0, 0, 0, 0.03);
  margin-bottom: 30rpx;

  .col-item {
    text-align: center;
    padding: 20rpx 0;
    border-radius: 15rpx;
    transition: all 0.3s;
    width: 33%;

    &:hover {
      background-color: #f5f7fa;
      transform: translateY(-5rpx);
    }

    .num {
      font-size: 36rpx;
      font-weight: 700;
      color: #00a0e9;
      margin-bottom: 10rpx;
    }

    .tit {
      color: #666;
      font-size: 26rpx;
    }
  }
}

/* 菜单列表 */
.my-menu {
  background-color: #fff;
  border-radius: 20rpx;
  box-shadow: 0 5rpx 15rpx rgba(0, 0, 0, 0.03);
  margin-top: 0;
  margin-bottom: 30rpx;

  .memu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 110rpx;
    border-bottom: 1px solid #f5f5f5;
    padding: 0 30rpx;
    transition: background-color 0.3s;

    &:last-child {
      border-bottom: none;
    }

    &:hover {
      background-color: #f9f9f9;
    }

    text {
      font-size: 30rpx;
      color: #333;
    }

    image {
      width: 55rpx;
      height: 55rpx;
      margin-right: 25rpx;
    }

    .i-name {
      display: flex;
      align-items: center;
    }
  }
}

/* 退出登录按钮 */
.log-out {
  padding: 20rpx 30rpx;
  text-align: center;
  margin-top: 20rpx;
}

/* 客服电话弹框样式 */
.service-modal {
  background: #fff;
  border-radius: 20rpx 20rpx 0 0;
  padding: 0;

  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30rpx 40rpx;
    border-bottom: 1rpx solid #f0f0f0;

    .modal-title {
      font-size: 36rpx;
      font-weight: 600;
      color: #333;
    }

    .modal-close {
      width: 60rpx;
      height: 60rpx;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background: #f5f5f5;
      transition: all 0.3s ease;

      &:hover {
        background: #e0e0e0;
      }

      .close-icon {
        font-size: 32rpx;
        color: #666;
      }
    }
  }

  .modal-content {
    padding: 20rpx 40rpx 40rpx;

    .phone-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 30rpx 0;
      border-bottom: 1rpx solid #f5f5f5;
      transition: all 0.3s ease;

      &:last-child {
        border-bottom: none;
      }

      &:hover {
        background: #f8f9fa;
        margin: 0 -40rpx;
        padding: 30rpx 40rpx;
      }

      .phone-info {
        display: flex;
        flex-direction: column;
        gap: 8rpx;

        .phone-number {
          font-size: 32rpx;
          font-weight: 500;
          color: #333;
          font-family: 'Courier New', monospace;
        }

        .phone-type {
          font-size: 24rpx;
          color: #999;
        }
      }

      .call-btn {
        background: linear-gradient(135deg, #4CAF50, #45a049);
        color: #fff;
        padding: 16rpx 32rpx;
        border-radius: 25rpx;
        font-size: 26rpx;
        font-weight: 500;
        transition: all 0.3s ease;
        box-shadow: 0 4rpx 12rpx rgba(76, 175, 80, 0.3);

        &:hover {
          transform: translateY(-2rpx);
          box-shadow: 0 6rpx 16rpx rgba(76, 175, 80, 0.4);
        }

        &:active {
          transform: scale(0.95);
        }
      }
    }
  }
}

/* 客服电话区域样式更新 */

.log-out-n {
  width: 100%;
  font-size: 32rpx;
  margin: auto;
  padding: 25rpx;
  border-radius: 15rpx;
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
  color: #ffffff;
  box-shadow: 0 5rpx 15rpx rgba(255, 107, 107, 0.2);
  transition: all 0.3s;
  font-weight: 500;
  margin: 0 auto;
  &:hover {
    transform: translateY(-3rpx);
    box-shadow: 0 8rpx 20rpx rgba(255, 107, 107, 0.3);
  }
}

/* 客服电话区域 */
.customer-service-section {
  background: #fff;
  border-radius: 20rpx;
  box-shadow: 0 5rpx 15rpx rgba(0, 0, 0, 0.03);
  padding: 30rpx;
  margin: 30rpx;

  .service-title {
    font-size: 32rpx;
    font-weight: 600;
    color: #333;
    margin-bottom: 20rpx;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10rpx;

    &::before {
      content: '📞';
      font-size: 36rpx;
    }
  }

  .service-phone-list {
    display: flex;
    flex-direction: column;
    gap: 20rpx;

    .phone-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 24rpx 20rpx;
      background: #f8f9fa;
      border-radius: 12rpx;
      border: 2rpx solid #e9ecef;
      transition: all 0.3s ease;
      cursor: pointer;

      &:hover {
        background: #e3f2fd;
        border-color: #2196f3;
        transform: translateY(-2rpx);
        box-shadow: 0 4rpx 12rpx rgba(33, 150, 243, 0.2);
      }

      &:active {
        transform: scale(0.98);
      }

      .phone-number {
        font-size: 30rpx;
        font-weight: 500;
        color: #333;
        font-family: 'Courier New', monospace;
      }

      .phone-label {
        font-size: 24rpx;
        color: #666;
        background: #fff;
        padding: 6rpx 16rpx;
        border-radius: 20rpx;
        border: 1rpx solid #ddd;
      }
    }
  }
}

/* 通用样式 */
.arrowhead {
  width: 16rpx;
  height: 16rpx;
  border-top: 2rpx solid #ccc;
  border-right: 2rpx solid #ccc;
  transform: rotate(45deg);
  margin-left: 10rpx;
  transition: border-color 0.3s;
}

button.memu-btn.memu-item {
  background-color: #fff;
  &:after { border: 0; }
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20rpx); }
  to { opacity: 1; transform: translateY(0); }
}

.userinfo, .total-order, .prod-col, .my-menu, .log-out-n {
  animation: fadeIn 0.5s ease-out forwards;
}

.total-order { animation-delay: 0.1s; opacity: 0; }
.prod-col { animation-delay: 0.2s; opacity: 0; }
.my-menu { animation-delay: 0.3s; opacity: 0; }
.log-out-n { animation-delay: 0.4s; opacity: 0; }
